package com.bds.btcdc.snatch;

import com.bds.btcdc.utils.SpringContextHolder;
import org.apache.log4j.Logger;

/**
 * Created by DongChenchen on 2018/4/25 0025
 */
public class PairSnatchTask extends Thread{
    private Logger LOGGER = org.apache.log4j.Logger.getLogger(getClass());
    private PairSnatch pairSnatch= SpringContextHolder.getBean(PairSnatch.class);

    @Override
    public void run(){
        LOGGER.info("获取汇率，定时任务开始执行。。。。");
        pairSnatch.getRealTimeValAndUpdate();
        LOGGER.info("获取汇率，定时任务完成。。。。");
    }

}
